package net.xo68.destiny.core.jwt;

import java.util.HashMap;
import java.util.Map;

/**
 * jwt请示权构建者
 * @author wuxie
 * @version 2020-11-6
 */
public class JwtClaimsBuilder {

    private final Map<String, Object> claims=new HashMap<>();

    private JwtClaimsBuilder() {
    }

    public static JwtClaimsBuilder builder(){
        return new JwtClaimsBuilder();
    }

    public JwtClaimsBuilder put(String claimName,Object val){
        this.claims.put(claimName,val);
        return this;
    }
    public Map<String, Object> build(){
        return new HashMap<>(this.claims);
    }
}
